<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-box">
            <div class="layui-row layui-col-space10">
                <div class="layui-col-md5">
                    <div class="layui-card">
                        <div class="layui-card-header"><i class="fa fa fa-sign-in icon"></i>个人资料</div>
                        <div class="layui-card-body layui-text">
                            <form class="layui-form layuimini-form">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">用户名：</label>
                                    <div class="layui-input-block">
                                        <input type="text" style="border: 0px;" name="username" placeholder="用户名"  onkeyup="this.value=this.value.replace(/[^\w_]/g,'');" autocomplete="off" class="layui-input" value="{$data.username|default=''}" disabled>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">租户ID：</label>
                                    <div class="layui-input-block">
                                        <input type="text" style="border: 0px;" name="username" placeholder="用户名" autocomplete="off" class="layui-input" value="{$data.id|default=''}" disabled>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">昵称：</label>
                                    <div class="layui-input-block">
                                        <input type="text" style="border: 0px;" name="nickname" placeholder="昵称" autocomplete="off" class="layui-input" value="{$data.nickname|default=''}" disabled>
                                    </div>
                                </div>

                                <div class="layui-form-item">
                                    <label class="layui-form-label">手机号：</label>
                                    <div class="layui-input-block">
                                        <input type="number" style="border: 0px;" name="mobile" placeholder="手机号"   autocomplete="off" class="layui-input" value="{$data.mobile|default=''}" disabled>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">绑定微信：</label>
                                    <div class="layui-input-inline">
                                        <input type="text" style="border: 0px;{$data.openid ? 'color: green':'color: red'}" name="wechat" autocomplete="off" class="layui-input" value="{$data.openid ? '已绑定':'未绑定,可扫码绑定'}" disabled>
                                        {if !$data.openid}
                                        <div id="qrcode"></div>
                                        {/if}
                                    </div>

                                    <div class="layui-form-mid layui-word-aux">
                                        {if $data.openid}
                                        <button class="layui-btn layui-btn-danger layui-btn-xs" data-request="member_login/userSetting?unbind=1" data-table="currentTableRenderId" data-title="确定解绑微信？">解除绑定</button>
                                        {/if}
                                    </div>

                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">余额：</label>
                                    <div class="layui-input-block">
                                        <div class="layui-input-inline">
                                            <input type="number" style="border: 0px;" name="money" placeholder="余额"   autocomplete="off" class="layui-input" value="{$data.money|default='0.00'}" disabled>
                                        </div>
                                        <div class="layui-form-mid layui-word-aux">
                                            <button type="button" class="layui-btn layui-btn-normal layui-btn-xs" id="recharge">充值</button>
                                        </div>
                                        <div class="layui-form-mid layui-word-aux">
                                            <button type="button" class="layui-btn layui-btn-normal layui-btn-xs" id="wallet_bill">财务明细</button>
                                        </div>
                                    </div>
                                </div>

                            </form>
                        </div>
                    </div>
                </div>

                <div class="layui-col-md7">
                    <div class="layui-card">
                        <div class="layui-card-header"><i class="fa fa-pencil icon icon-tip"></i>更新资料</div>
                        <div class="layui-card-body layui-text">
                            <form class="layui-form layuimini-form">
                                <div class="layui-form-item">
                                    <label class="layui-form-label required">头部LOGO</label>
                                    <div class="layui-input-block layuimini-upload">
                                        <input name="avatar" class="layui-input layui-col-xs6"   placeholder="请上传头部LOGO" value="{$data.avatar|default=''}">
                                        <div class="layuimini-upload-btn">
                                            <span><a class="layui-btn" data-upload="avatar" data-upload-number="one" data-upload-exts="png|jpg|ico|jpeg" data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                                            <span><a class="layui-btn layui-btn-normal" id="select_avatar" data-upload-select="avatar" data-upload-number="one" data-upload-mimetype="image/*"><i class="fa fa-list"></i> 选择</a></span>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">昵称</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="nickname" lay-verify="required" placeholder="昵称" autocomplete="off" class="layui-input" value="{$data.nickname|default=''}">
                                    </div>
                                </div>
                                <!--                                <div class="layui-form-item">-->
                                <!--                                    <label class="layui-form-label">手机号</label>-->
                                <!--                                    <div class="layui-input-block">-->
                                <!--                                        <input type="number" name="mobile" lay-verify="required" placeholder="手机号"   autocomplete="off" class="layui-input" value="{$data.mobile|default=''}">-->
                                <!--                                    </div>-->
                                <!--                                </div>-->
                                <div class="hr-line"></div>
                                <div class="layui-form-item text-center">
                                    <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>提交</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>